


<table class="layui-table" >
	<colgroup>
		<col width="150"><col>
		<col width="200"><col>
	</colgroup>
    <tr>
        <td class="w"><strong>主键</strong></td><td th:text="${entity.id}"></td>
        <td class="w"><strong>所属公司</strong></td><td th:text="${entity.companyName}"></td>
    </tr>
    <tr>
        <td class="w"><strong>物料编码</strong></td><td th:text="${entity.materialCoding}"></td>
        <td class="w"><strong>物料名称</strong></td><td th:text="${entity.materialName}"></td>
    </tr>
    <tr>
        <td class="w"><strong>物料规格</strong></td><td th:text="${entity.materialSpec}"></td>
        <td class="w"><strong>物料类型</strong></td><td th:text="${entity.materialTypeName}"></td>
    </tr>
    <tr>
        <td class="w"><strong>计量单位</strong></td><td th:text="${entity.materialUnitName}"></td>
        <td class="w"><strong>供应商名称</strong></td><td th:text="${entity.supplierName}"></td>
    </tr>
    <tr>
    	<td class="w"><strong>是否安规</strong></td><td th:text=" ${entity.isSafied}==true?'是':'否'"></td>
        <td class="w"><strong>是否停用</strong></td><td th:text="${entity.isNoUsed}==true?'是':'否'"></td>
    <tr>   
        <td class="w"><strong>证书生效日期</strong></td><td th:text=" ${entity.safetyCertificateStart}==null?'':${#dates.format(entity.safetyCertificateStart,'yyyy-MM-dd')}"></td>
        <td class="w"><strong>证书失效日期</strong></td><td th:text=" ${entity.safetyCertificateEnd}==null?'':${#dates.format(entity.safetyCertificateEnd,'yyyy-MM-dd')}"></td>
    </tr>
    <tr>        
        <td class="w"><strong>备注</strong></td>
        <td colspan="3" th:text="${entity.remark}"></td>
	</tr>
</table>

<button class="layui-btn" style="margin-left:40%;" id="closeBtn">关闭</button>

<script>
//关闭按钮
$("#closeBtn").click(function(){
	  layer.closeAll();
})
</script>
<script type="text/html" id="statusTpl">
{{#if (d.status==0){}}
  		未审核
{{# }else if(d.status==1) {}}
		审核
{{# }else if(d.status==2) {}}
		关闭
{{# }else if(d.status==3) {}}
		完成
{{#  } }}
</script>